<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js中的数据类型</title>
	<script>
		var num = 10;//数字
		var str = 'html5';//字符串

		/*
			运算：加减乘除
		 */
		var result = 187545 / 266666;//
		// alert(result);


		var num1 = 20;
		var num2 = 100;
		var str = '30';

		// alert(num1+num2);

		alert(num1 + str);//20 + '30' => '2030'
		// 字符串拼接：运算中只要有一个是字符串，+号代表字符串拼接

	</script>
</head>
<body>
</body>
</html>